<? if(!defined('IN_MDL')) exit('Access Denied');?>
<? include $this->gettpl('header');?> 
<script type="text/javascript" src="<?=APPPUBLIC?>js/user.js"></script>


<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td bgcolor="#e6e6e6"><table width="920" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td width="200" valign="top"> <? include $this->gettpl('usermenu');?></td>
        <td width="720" bgcolor="#FFFFFF"><table width="700" border="0" align="center" cellpadding="0" cellspacing="10" bgcolor="#666666">
          <tr>
            <td height="580" valign="top" bgcolor="#FFFFFF"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td width="720" height="1" colspan="3" bgcolor="#E6E6E6"></td>
                </tr>
              <tr>
                <td height="30" colspan="3" bgcolor="#f9f9f9"><table border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="25"><img src="<?=APPPUBLIC?>Images/Public/Point.gif" width="14" height="10" /></td>
                    <td class="Categories_Menu"><a href="#" class="Categories_Menu_a">首页</a> <font face="宋体">&gt;</font> 会员中心 <font face="宋体">&gt;</font> <strong>密码修改</strong></td>
                    </tr>
                  </table></td>
                </tr>
              <tr>
                <td height="1" colspan="3" bgcolor="#E6E6E6"></td>
                </tr>
              </table>
			   <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
        <tr>
          <td width="15%" align="right" bgcolor="#ffffff">订单号：</td>

          <td align="left" bgcolor="#ffffff"><?=$order['order_sn']?>            
					 </a>
					</td>
        </tr>
		 

        <tr>
          <td align="right" bgcolor="#ffffff">订单状态：</td>
          <td align="left" bgcolor="#ffffff"><?=$order['order_status']?>&nbsp;&nbsp;&nbsp;&nbsp;</td>
        </tr>

        <tr>
          <td align="right" bgcolor="#ffffff">付款状态：</td>
          <td align="left" bgcolor="#ffffff"><?=$order['shipping_status']?>&nbsp;&nbsp;&nbsp;&nbsp;</td>
        </tr>
        <tr>
          <td align="right" bgcolor="#ffffff">配送状态：</td>
          <td align="left" bgcolor="#ffffff"> <?=$order['pay_status']?>&nbsp;&nbsp;&nbsp;&nbsp;</td>

        </tr>
                
              </table>
        <div class="blank"></div>
        <h5><span>商品列表</span></h5>
        <div class="blank"></div>
         <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
          <tr>
            <th width="23%" align="center" bgcolor="#ffffff">商品名称</th>
            <th width="29%" align="center" bgcolor="#ffffff">属性</th>
           
            <th width="26%" align="center" bgcolor="#ffffff">商品价格</th>
            <th width="9%" align="center" bgcolor="#ffffff">购买数量</th>
            <th width="20%" align="center" bgcolor="#ffffff">小计</th>
          </tr>
		   <? foreach((array)$goods_list as $key => $goods) {?>
          <tr>
            <td bgcolor="#ffffff">
                              <a href="<? echo U('Goods/show',array('gid'=>$goods['goods_id']))?>" target="_blank" class="f6"><?=$goods['goods_name']?></a>
                                            </td>
            <td align="left" bgcolor="#ffffff"></td>
            
            <td align="right" bgcolor="#ffffff"><?=$goods['goods_price']?></td>

            <td align="center" bgcolor="#ffffff"><?=$goods['goods_number']?></td>
            <td align="right" bgcolor="#ffffff"> <?=$goods['subtotal']?></td>
          </tr>  
		  <?}?>
                    <tr>
            <td colspan="8" bgcolor="#ffffff" align="right">
            商品总价: <?=$order['formated_goods_amount']?>           </td>
          </tr>
       
        </table>
         <div class="blank"></div>
        <h5><span>费用总计</span></h5>
        <div class="blank"></div>
          <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
			  <tr>
				<td align="right" bgcolor="#ffffff">
					<?=$lang['goods_all_price']?>
					<? if($order['extension_code'] == "group_buy") { ?><?=$lang['gb_deposit']?><? } ?>: <?=$order['formated_goods_amount']?>
				  <? if($order['discount'] == 0) { ?>
				  - <?=$lang['discount']?>: <?=$order['formated_discount']?>
				  <? } ?>
				  <? if($order['tax'] == 0) { ?>
				  + <?=$lang['tax']?>: <?=$order['formated_tax']?>
				  <? } ?>
				  <? if($order['shipping_fee'] > 0) { ?>
				  + <?=$lang['shipping_fee']?>: <?=$order['formated_shipping_fee']?>
				  <? } ?>

				  <? if($order['insure_fee'] > 0) { ?>
				  + <?=$lang['insure_fee']?>: <?=$order['formated_insure_fee']?>
				  <? } ?>

				  <? if($order['pay_fee'] > 0) { ?>
				  + <?=$lang['pay_fee']?>: <?=$order['formated_pay_fee']?>
				  <? } ?>

				  <? if($order['pack_fee'] > 0) { ?>
				  + <?=$lang['pack_fee']?>: <?=$order['formated_pack_fee']?>
				  <? } ?>

				  <? if($order['card_fee'] > 0) { ?>
				  + <?=$lang['card_fee']?>: <?=$order['formated_card_fee']?>
				  <? } ?>        </td>
			  </tr>
			  <tr>
				<td align="right" bgcolor="#ffffff">
				  <? if($order['money_paid'] > 0) { ?>
				  - <?=$lang['order_money_paid']?>: <?=$order['formated_money_paid']?>
				  <? } ?>
				  <? if($order['surplus'] > 0) { ?>
				  - <?=$lang['use_surplus']?>: <?=$order['formated_surplus']?>
				  <? } ?>
				  <? if($order['integral_money'] > 0) { ?>
				  - <?=$lang['use_integral']?>: <?=$order['formated_integral_money']?>
				  <? } ?>
				  <? if($order['bonus'] > 0) { ?>
				  - <?=$lang['use_bonus']?>: <?=$order['formated_bonus']?>
				  <? } ?>        </td>
			  </tr>
		  </table>
         <div class="blank"></div>
        <h5><span>收货人信息</span></h5>
        <div class="blank"></div>
                   <form action="<? echo U('save_order_address')?>" method="post" name="formAddress" id="formAddress">
           <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
              <tr>
                <td width="15%" align="right" bgcolor="#ffffff">收货人姓名： </td>

                <td width="35%" align="left" bgcolor="#ffffff"><input name="consignee" type="text"  class="inputBg" value="<?=$order['consignee']?>" size="25">
                </td>
                <td width="15%" align="right" bgcolor="#ffffff">电子邮件地址： </td>
                <td width="35%" align="left" bgcolor="#ffffff"><input name="email" type="text"  class="inputBg" value="<?=$order['email']?>" size="25" />
                </td>
              </tr>
                            
              <tr>
                <td align="right" bgcolor="#ffffff">详细地址： </td>

                <td align="left" bgcolor="#ffffff"><input name="address" type="text" class="inputBg" value="<?=$order['address']?> " size="25" /></td>
                <td align="right" bgcolor="#ffffff">邮政编码：</td>
                <td align="left" bgcolor="#ffffff"><input name="zipcode" type="text"  class="inputBg" value="<?=$order['zipcode']?>" size="25" /></td>
              </tr>
                            <tr>
                <td align="right" bgcolor="#ffffff">电话：</td>
                <td align="left" bgcolor="#ffffff"><input name="tel" type="text" class="inputBg" value="<?=$order['tel']?>" size="25" /></td>
                <td align="right" bgcolor="#ffffff">手机：</td>

                <td align="left" bgcolor="#ffffff"><input name="mobile" type="text"  class="inputBg" value="<?=$order['mobile']?>" size="25" /></td>
              </tr>
                            
              <tr>
                <td align="right" bgcolor="#ffffff">标志建筑：</td>
                <td align="left" bgcolor="#ffffff"><input name="sign_building" class="inputBg" type="text" value="<?=$order['sign_building']?>" size="25" />
                </td>
                <td align="right" bgcolor="#ffffff">最佳送货时间：</td>
                <td align="left" bgcolor="#ffffff"><input name="best_time" type="text" class="inputBg" value="<?=$order['best_time']?>" size="25" />

                </td>
              </tr>
                            <tr>
                <td colspan="4" align="center" bgcolor="#ffffff"> 
                  <input type="hidden" name="order_id" value="<?=$order['order_id']?>" />
                  <input type="submit" class="bnt_blue_2" value="更新收货人信息"  />
                </td>
              </tr>
            </table>

          </form>
                    <div class="blank"></div>
        <h5><span>支付方式</span></h5>
        <div class="blank"></div>
        <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
                <tr>
                  <td bgcolor="#ffffff">
                   <?=$lang['select_payment']?>: <?=$order['pay_name']?>。<?=$lang['order_amount']?>: <strong><?=$order['formated_order_amount']?></strong><br />
                  <?=$order['pay_desc']?>              </td>
                </tr>
                  <tr>
                  <td bgcolor="#ffffff" align="right">
                                    </td>
                </tr>
              </table>
        <div class="blank"></div>

       

             

				
				
				</td>
            </tr>
        </table>
		
		</td>
        </tr>
    </table></td>
  </tr>
</table>

<? include $this->gettpl('footer');?>